/****************************************************
          File Name:10-8.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Wed 24 Dec 2014 11:27:27 AM CST
*****************************************************/

#include<iostream>
using std::string;

struct Item
{
    string name;
    Item *next;
};

class List
{
    private:
        enum {max = 5};
        Item *head;
        int len;
    public:
        List();
        bool isempty();
        bool isfull();
        void add();
        void rm(std::string name);
        void show() const;
        void destroy();
};
